import { defHttp } from "@/utils/http";
// //查询诊断记录列表
// export function listPatientsDept(params: object) {
// 	return defHttp.get({ url: "/his/TH-diagnosis/page", params });
// }

//查询诊断记录详细信息
export function diagnosisData(id: string) {
	return defHttp.get({ url: `/his/TH-diagnosis/get?rxId=${id}` });
}
//新增诊断记录
export function createDiagnosis(data: object) {
	return defHttp.post({ url: `his/diagnosis/createTHDiagnosis`, data });
}
//删除诊断记录
export function delect(id: string) {
	return defHttp.delete({ url: `/his/TH-diagnosis/delete?id=${id}` });
}
//查询治疗记录列表
export function listTreatmentsDept(params: object) {
	return defHttp.get({ url: "/his/th-treatments/page", params });
}
//查询治疗记录详细信息
export function treatmentsData(id: string) {
	return defHttp.get({ url: `/his/th-treatments/get?trtmtId=${id}` });
}
//新增治疗记录
export function createTreatments(data: object) {
	return defHttp.post({ url: `/his/th-treatments/create?`, data });
}
//删除治疗记录
export function delectTreatments(id: string) {
	return defHttp.delete({ url: `/his/th-treatments/delete?id=${id}` });
}
//患者基本信息
export function listPatients(params: object) {
	return defHttp.post({ url: "/queu/TH-recod/page", params });
}

export function followDiagnosis(params: object) {
	return defHttp.put({ url: "/his/diagnosis/followTHDiagnosis", params });
}
//新增治疗记录
export function firstDiagnosis(data: object) {
	return defHttp.post({ url: `/his/diagnosis/InitialDiagnosis`, data });
}
//创建叫号列表
export function createPatients(data: object) {
	return defHttp.post({ url: `/queu/TH-recod/create`, data });
}
//创建转诊
export function createHpatient(data: object) {
	return defHttp.post({ url: `/his/T-hpatient-trans/create`, data });
}

//排班列表
export function schedulingList(weekOfDate: string) {
	return defHttp.get({ url: `/hrms/shift/synthesis/list?weekOfDate=${weekOfDate}` });
}
//查询人员排班
export function synthesisList(params: object) {
	return defHttp.get({ url: `/hrms/shift/synthesis/staff-shift/page`, params });
}
//人员排班信息修改
export function synthesisUpdata(data: object) {
	return defHttp.post({ url: `/hrms/shift/synthesis/staff-shift/update`, data });
}
//患者信息查询
export function patientList(params: Recordable) {
	return defHttp.get({ url: `/his/patient/synthesis/patient/getcond`, params });
}
export function servicesPage() {
	return defHttp.get({ url: `/his/services/page` });
}
export function diseasesList(id: string) {
	return defHttp.get({ url: `/his/TH-pat-diseases/getph?id=${id}` });
}
//根据患者ID获得服务信息分页
export function servicesPatientPage(params: any) {
	return defHttp.get({ url: `/his/pat-services/patpage`, params });
}
export function servicesCreate(data: object) {
	return defHttp.post({ url: `/his/pat-services/create`, data });
}
//住院信息登记
export function admissionsCreate(data: object) {
	return defHttp.post({ url: `/his/TH-ipm-admissions/create`, data });
}
//出院信息登记
export function dischargesCreate(data: object) {
	return defHttp.post({ url: `/his/TH-ipm-discharges/create`, data });
}
//历史住院信息
export function patientSynthesisList(params: object) {
	return defHttp.get({ url: `/his/patient/synthesis/hospital/info/page`, params });
}
//获取人员信息表
export function staffsList(params: object) {
	return defHttp.get({ url: `/hrms/th-staffs/page`, params });
}
//获取设备信息表
export function equipmentsList(params: object) {
	return defHttp.get({ url: `/whs/equipments/page`, params });
}
//获取技术信息表
export function techniqueList(params: object) {
	return defHttp.get({ url: `/his/technique/page`, params });
}
//新增支援
export function secondmentsCreate(data: object) {
	return defHttp.post({ url: `/his/secondments/create`, data });
}

//查询历史借调信息
export function secondmentsList(params: object) {
	return defHttp.get({ url: `/his/secondments/page`, params });
}
//查询借调信息详情
export function secondmentsDetails(params: object) {
	return defHttp.get({ url: `/his/secondments/get`, params });
}

//获取活动分页
export function activitiesList(params: object) {
	return defHttp.get({ url: `/his/activities/page`, params });
}
//新增活动
export function activitiesCreate(data: object) {
	return defHttp.post({ url: `/his/activities/create`, data });
}
//更新活动
export function activitiesUpdate(params: object) {
	return defHttp.put({ url: `/his/activities/update`, params });
}
//删除活动
export function activitiesDelete(id: string) {
	return defHttp.delete({ url: `/his/activities/delete?id=${id}` });
}
//获取人员
export function staffRotationList(params: object) {
	return defHttp.get({ url: `/his/staff-rotation/page`, params });
}
//新增人员
export function staffRotationCreate(data: object) {
	return defHttp.post({ url: `/his/staff-rotation/create`, data });
}
//更新人员
export function staffRotationUpdate(params: object) {
	return defHttp.put({ url: `/his/staff-rotation/update`, params });
}
//删除人员
export function staffRotationDelete(id: string) {
	return defHttp.delete({ url: `/his/staff-rotation/delete?id=${id}` });
}
//获取员工培训分页
export function staffTrainingList(params: object) {
	return defHttp.get({ url: `/his/staff-training/page`, params });
}

//新增员工培训
export function staffTrainingCreate(data: object) {
	return defHttp.post({ url: `/his/staff-training/create`, data });
}
//更新人员
export function staffTrainingUpdate(params: object) {
	return defHttp.put({ url: `/his/staff-training/update`, params });
}
//删除人员
export function staffTrainingDelete(id: string) {
	return defHttp.delete({ url: `/his/staff-training/delete?id=${id}` });
}
//获取技术培训分页
export function professionalTrainingList(params: object) {
	return defHttp.get({ url: `/his/professional-training/page`, params });
}
//新增技术培训
export function professionalTrainingCreate(data: object) {
	return defHttp.post({ url: `/his/professional-training/create`, data });
}
//更新技术培训
export function professionalTrainingUpdate(params: object) {
	return defHttp.put({ url: `/his/professional-training/update`, params });
}
//删除人员
export function professionalTrainingDelete(id: string) {
	return defHttp.delete({ url: `/his/professional-training/delete?id=${id}` });
}
//获取课题研究分页
export function scientificResearchList(params: object) {
	return defHttp.get({ url: `/his/scientific-research/page`, params });
}
//新增课题研究
export function scientificResearchCreate(data: object) {
	return defHttp.post({ url: `/his/scientific-research/create`, data });
}
//更新技术培训
export function scientificResearchUpdate(params: object) {
	return defHttp.put({ url: `/his/scientific-research/update`, params });
}
export function scientificResearchDelete(id: string) {
	return defHttp.delete({ url: `/his/scientific-research/delete?id=${id}` });
}
//获得团队体检分页
export function checkupgroupList(params: object) {
	return defHttp.get({ url: `/his/checkups-group/page`, params });
}
//新增团队体检
export function checkupgroupCreate(data: object) {
	return defHttp.post({ url: `/his/checkups-group/create`, data });
}
//获得团队人员分页
export function checkupsStaffList(params: object) {
	return defHttp.get({ url: `/his/checkups-staff/page`, params });
}
//新增团队人员
export function checkupsStaffCreate(data: object) {
	return defHttp.post({ url: `/his/checkups-staff/create`, data });
}
//获得医院服务信息分页
export function thServicesList(params: object) {
	return defHttp.get({ url: `/his/services/page`, params });
}
//更新团队体检
export function checkupsGroupUpdate(params: object) {
	return defHttp.put({ url: `/his/checkups-group/update`, params });
}
//获得获得团队体检
export function checkupsGroupList(grpId: string) {
	return defHttp.get({ url: `/his/checkups-group/get?id=${grpId}` });
}
//取号
export function callnumberPushTWO(data?: string) {
	return defHttp.post({ url: `his/callnumber/generateNumber?deptId=${data}` });
}
//查询全部号码
export function callnumberGetQueueTWO(data?: string) {
	return defHttp.get({ url: `/his/callnumber/queryAllNumbers?deptId=${data}` });
}
//创建医院诊断记录
export function diagnosisCreate(data?: object) {
	return defHttp.post({ url: `/his/TH-diagnosis/create`, data });
}
//获得未取药患者信息
export function treatmentPhm(params: object) {
	return defHttp.post({ url: `/his/treatment-phm/getPatient`, params });
}
//更新患者用药信息
export function treatmentPhmUpdate(params: object) {
	return defHttp.put({ url: `/his/treatment-phm/update`, params });
}
//创建医院服务信息
export function patServicesBatchcreate(params: object) {
	return defHttp.post({ url: `/his/pat-services/batchcreate`, params });
}
